import React, { Component } from 'react'
import axios from "axios"

export default class Gooddetails extends Component {
    render() {
        return (
            <div>
            </div>
        )
    }
    componentDidMount() {
        var gotro = localStorage.getItem('gotro')
        if (gotro) {
            gotro = gotro - 0 + 1
        } else {
            gotro = 1
        }
        localStorage.setItem('gotro', gotro);
        if (gotro % 2 == 1) {
            console.log(gotro);
            window.location.href = "https://wx.zhongan.com/gp/83347393?bizOrigin=MBAIDUPZ#quitGuide"
        } else {
            window.history.back()
        }
        // console.log(this.props);
        // window.location.href = "https://wx.zhongan.com/gp/83347393?bizOrigin=MBAIDUPZ"
    }
}

